﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E2D RID: 3629
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RetcodeNotify : IMessage<RetcodeNotify>, IMessage, IEquatable<RetcodeNotify>, IDeepCloneable<RetcodeNotify>, IBufferMessage
	{
		// Token: 0x17002E17 RID: 11799
		// (get) Token: 0x0600A2E1 RID: 41697 RVA: 0x001B5B0D File Offset: 0x001B3D0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RetcodeNotify> Parser
		{
			get
			{
				return RetcodeNotify._parser;
			}
		}

		// Token: 0x17002E18 RID: 11800
		// (get) Token: 0x0600A2E2 RID: 41698 RVA: 0x001B5B14 File Offset: 0x001B3D14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RetcodeNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002E19 RID: 11801
		// (get) Token: 0x0600A2E3 RID: 41699 RVA: 0x001B5B26 File Offset: 0x001B3D26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RetcodeNotify.Descriptor;
			}
		}

		// Token: 0x0600A2E4 RID: 41700 RVA: 0x001B5B2D File Offset: 0x001B3D2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RetcodeNotify()
		{
		}

		// Token: 0x0600A2E5 RID: 41701 RVA: 0x001B5B40 File Offset: 0x001B3D40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RetcodeNotify(RetcodeNotify other) : this()
		{
			this.retcode_ = other.retcode_;
			this.eFCCHMBPEFF_ = other.eFCCHMBPEFF_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A2E6 RID: 41702 RVA: 0x001B5B76 File Offset: 0x001B3D76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RetcodeNotify Clone()
		{
			return new RetcodeNotify(this);
		}

		// Token: 0x17002E1A RID: 11802
		// (get) Token: 0x0600A2E7 RID: 41703 RVA: 0x001B5B7E File Offset: 0x001B3D7E
		// (set) Token: 0x0600A2E8 RID: 41704 RVA: 0x001B5B86 File Offset: 0x001B3D86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Retcode Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002E1B RID: 11803
		// (get) Token: 0x0600A2E9 RID: 41705 RVA: 0x001B5B8F File Offset: 0x001B3D8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> EFCCHMBPEFF
		{
			get
			{
				return this.eFCCHMBPEFF_;
			}
		}

		// Token: 0x0600A2EA RID: 41706 RVA: 0x001B5B97 File Offset: 0x001B3D97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RetcodeNotify);
		}

		// Token: 0x0600A2EB RID: 41707 RVA: 0x001B5BA8 File Offset: 0x001B3DA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RetcodeNotify other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.eFCCHMBPEFF_.Equals(other.eFCCHMBPEFF_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A2EC RID: 41708 RVA: 0x001B5BF8 File Offset: 0x001B3DF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != Retcode.RetSucc)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.eFCCHMBPEFF_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A2ED RID: 41709 RVA: 0x001B5C4B File Offset: 0x001B3E4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A2EE RID: 41710 RVA: 0x001B5C53 File Offset: 0x001B3E53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A2EF RID: 41711 RVA: 0x001B5C5C File Offset: 0x001B3E5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.eFCCHMBPEFF_.WriteTo(ref output, RetcodeNotify._repeated_eFCCHMBPEFF_codec);
			if (this.Retcode != Retcode.RetSucc)
			{
				output.WriteRawTag(72);
				output.WriteEnum((int)this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A2F0 RID: 41712 RVA: 0x001B5CAC File Offset: 0x001B3EAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != Retcode.RetSucc)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Retcode);
			}
			num += this.eFCCHMBPEFF_.CalculateSize(RetcodeNotify._repeated_eFCCHMBPEFF_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A2F1 RID: 41713 RVA: 0x001B5D00 File Offset: 0x001B3F00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RetcodeNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != Retcode.RetSucc)
			{
				this.Retcode = other.Retcode;
			}
			this.eFCCHMBPEFF_.Add(other.eFCCHMBPEFF_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A2F2 RID: 41714 RVA: 0x001B5D4D File Offset: 0x001B3F4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A2F3 RID: 41715 RVA: 0x001B5D58 File Offset: 0x001B3F58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U && num != 66U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = (Retcode)input.ReadEnum();
					}
				}
				else
				{
					this.eFCCHMBPEFF_.AddEntriesFrom(ref input, RetcodeNotify._repeated_eFCCHMBPEFF_codec);
				}
			}
		}

		// Token: 0x04004261 RID: 16993
		private static readonly MessageParser<RetcodeNotify> _parser = new MessageParser<RetcodeNotify>(() => new RetcodeNotify());

		// Token: 0x04004262 RID: 16994
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004263 RID: 16995
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04004264 RID: 16996
		private Retcode retcode_;

		// Token: 0x04004265 RID: 16997
		public const int EFCCHMBPEFFFieldNumber = 8;

		// Token: 0x04004266 RID: 16998
		private static readonly FieldCodec<uint> _repeated_eFCCHMBPEFF_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x04004267 RID: 16999
		private readonly RepeatedField<uint> eFCCHMBPEFF_ = new RepeatedField<uint>();
	}
}
